﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace T.FAS.Runtime.Base.Entity.Tools
{
    public class MaskRegTool
    {
        public static string GetMaskDataInternal(string pattern, string replacement, string input)
        {
            if (string.IsNullOrEmpty(input)) return input;
            try
            {
                return Regex.Replace(input, pattern, replacement);
            }
            catch (Exception e)
            {
                return "---";
            }
        }
    }
}
